package com.ruoyi.pcwl.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;


/**
 * 媒资信息对象 media_files
 *
 * @author ruoyi
 * @date 2024-01-17
 */
public class MediaFiles extends WLBaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文件id,md5值 */
    @TableId(value="id", type= IdType.ASSIGN_ID)
    private Long id;

    /** 机构ID */
    @Excel(name = "分类ID")
    private Long categoryId;

    /** 机构名称 */
    @Excel(name = "分类名称：1、轮播，2、视频")
    private String categoryName;

    /** 文件名称 */
    @Excel(name = "文件名称")
    private String filename;

    /** 文件类型（图片、文档，视频） */
    @Excel(name = "文件类型", readConverterExp = "图片、文档，视频")
    private String fileType;

    /** 标签 */
    @Excel(name = "标签")
    private String tags;

    /** 存储目录 */
    @Excel(name = "存储目录")
    private String bucket;

    /** 存储路径 */
    @Excel(name = "存储路径")
    private String filePath;

    /** 文件id */
    @Excel(name = "文件id")
    private String fileId;

    /** 媒资文件访问地址 */
    @Excel(name = "媒资文件访问地址")
    private String url;

    /** 上传人 */
    @Excel(name = "上传人")
    private String username;

    /** 上传时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date changeDate;

    /** 状态,1:正常，0:不展示 */
    @Excel(name = "状态,1:正常，0:不展示")
    private String status;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private String auditStatus;

    /** 审核意见 */
    @Excel(name = "审核意见")
    private String auditMind;

    /** 文件大小 */
    @Excel(name = "文件大小")
    private Long fileSize;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCategoryId(Long categoryId)
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId()
    {
        return categoryId;
    }
    public void setCategoryName(String categoryName)
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName()
    {
        return categoryName;
    }
    public void setFilename(String filename)
    {
        this.filename = filename;
    }

    public String getFilename()
    {
        return filename;
    }
    public void setFileType(String fileType)
    {
        this.fileType = fileType;
    }

    public String getFileType()
    {
        return fileType;
    }
    public void setTags(String tags)
    {
        this.tags = tags;
    }

    public String getTags()
    {
        return tags;
    }
    public void setBucket(String bucket)
    {
        this.bucket = bucket;
    }

    public String getBucket()
    {
        return bucket;
    }
    public void setFilePath(String filePath)
    {
        this.filePath = filePath;
    }

    public String getFilePath()
    {
        return filePath;
    }
    public void setFileId(String fileId)
    {
        this.fileId = fileId;
    }

    public String getFileId()
    {
        return fileId;
    }
    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getUrl()
    {
        return url;
    }
    public void setUsername(String username)
    {
        this.username = username;
    }

    public String getUsername()
    {
        return username;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setChangeDate(Date changeDate)
    {
        this.changeDate = changeDate;
    }

    public Date getChangeDate()
    {
        return changeDate;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setAuditStatus(String auditStatus)
    {
        this.auditStatus = auditStatus;
    }

    public String getAuditStatus()
    {
        return auditStatus;
    }
    public void setAuditMind(String auditMind)
    {
        this.auditMind = auditMind;
    }

    public String getAuditMind()
    {
        return auditMind;
    }
    public void setFileSize(Long fileSize)
    {
        this.fileSize = fileSize;
    }

    public Long getFileSize()
    {
        return fileSize;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("categoryId", getCategoryId())
            .append("categoryName", getCategoryName())
            .append("filename", getFilename())
            .append("fileType", getFileType())
            .append("tags", getTags())
            .append("bucket", getBucket())
            .append("filePath", getFilePath())
            .append("fileId", getFileId())
            .append("url", getUrl())
            .append("username", getUsername())
            .append("createDate", getCreateDate())
            .append("changeDate", getChangeDate())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("auditStatus", getAuditStatus())
            .append("auditMind", getAuditMind())
            .append("fileSize", getFileSize())
            .toString();
    }
}
